<template>
  <div >
    <el-container>
      <el-header>

      </el-header>

      <!--中间呢块      -->
      <el-main>
        <div style="height: 50px;margin: 0;width: 1226px;">
          <el-breadcrumb separator-class="el-icon-arrow-right" style="line-height: 50px">
            <el-breadcrumb-item :to="{ path: '/' }" >首页</el-breadcrumb-item>
            <el-breadcrumb-item :to="{ path: '/' }">全部结果</el-breadcrumb-item>
          </el-breadcrumb>
        </div>

        <div style="width: 1226px;" class="row1">
          <ul style="list-style: none; padding: 30px 0px;background: white;line-height: 10px">
            <span style="display: block;float:left;">分类:</span>
            <li><a href="">全部</a></li>
            <li><a href="">电脑</a></li>
            <li><a href="">电脑鼠标</a></li>
            <li><a href="">电脑耳机</a></li>

            <el-collapse v-model="activeNames"  @change="handleChange" style="padding: 0;margin: 0">
              <el-collapse-item title="下拉框" name="2">
                <div>控制反馈：通过界面样式和交互动效让用户可以清晰的感知自己的操作；</div>
                <div>页面反馈：操作后，通过页面元素的变化清晰地展现当前状态。</div>
              </el-collapse-item>
            </el-collapse>

          </ul>
        </div>

        <div style="width: 1226px;" class="row2">
          <ul style="list-style: none; padding: 30px 0">
            <li ><a href="">综合</a><span style="padding-left: 35px">|</span></li>
            <li ><a href="">新品</a><span style="padding-left: 35px">|</span></li>
            <li ><a href="">销量</a><span style="padding-left: 35px">|</span></li>
            <li ><a href="">价格</a></li>
          </ul>
        </div>
        <div>
          <el-row :gutter="15">

            <el-col :span="6" v-for="(o, index) in 8"
                    style="width: 296px; height: 320px; margin: 5px auto; float: left">
              <a style="text-decoration: none" href="">
                <el-card class="image_little" :body-style="{ padding: '0px'}">
                  <div style="padding: 5px;">
                    <img src="https://cdn.cnbj1.fds.api.mi-img.com/nr-pub/202207012022_19bbddb6b35c3828f8b53f450c1519a3.png?thumb=1&w=200&h=200&f=webp&q=90"><br>
                    <span style="font-size: 11px"> Redmi Book Pro 15 2022</span><br>
                    <span style="font-size: 10px;color:darkgrey;">| Note 11 5G | Note 9 4G</span><br>
                    <span style="font-size:9px;color: orange;font-weight: bold;position: relative;top: 20px">7999元起</span>
                  </div>
                </el-card>
              </a>
            </el-col>
          </el-row>
        </div>
      </el-main>

      <el-footer>Footer</el-footer>
    </el-container>
  </div>
</template>

<script>
export default {
  data() {
    return {
      activeNames: ['1']
    };
  },
  methods: {
    handleChange(val) {
      console.log(val);
    }
  }
}
</script>


<style>
.el-header, .el-footer {
  background-color: #B3C0D1;
  color: #333;
  text-align: center;
  line-height: 60px;
}

.el-aside {
  background-color: #D3DCE6;
  color: #333;
  text-align: center;
  line-height: 200px;
}

.el-main {
  background-color: #f5f5f5;
  color: #333;
  padding-left: 100px;
}

body > .el-container {
  margin-bottom: 40px;
}

.el-container:nth-child(5) .el-aside,
.el-container:nth-child(6) .el-aside {
  line-height: 260px;
}

.el-container:nth-child(7) .el-aside {
  line-height: 320px;
}

a{
  text-decoration: none;
  color: #333333;
}


.row1>ul>li {
  margin: 0;
  padding-left: 100px;
  display: inline-block;
  float: left;
}


.row2>ul>li {
  margin: 0;
  padding-right: 50px;
  display: inline-block;
  float: left;

}
a:hover{
  color: #e08851;
}










/*卡片标签*/
.image:hover {
  position: relative;
  top: 5px;
  box-shadow: 1px 1px 15px 10px #11333333;
}

.image_little{
  width: 270px;
  height: 310px;
}

.image_little:hover {
  position: relative;
  top: 5px;
  box-shadow: 1px 1px 15px 10px #11333333;
}

.time {
  font-size: 13px;
  color: #999;
}

.bottom {
  margin-top: 13px;
  line-height: 12px;
}

.button {
  padding: 0;
  float: right;
}

.image {
  width: 100%;
  display: block;
}

.clearfix:before,
.clearfix:after {
  display: table;
  content: "";
}

.clearfix:after {
  clear: both
}

/*卡片标签*/
</style>